package com.example.provider.rest;

import com.example.provider.feign.UserFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Create by jian.pan on 2018/6/19
 */
@RestController
@RequestMapping("/user")
public class UserRest {
  @Autowired
  private UserFeignClient userService;


  @GetMapping("")
  private String getUser(){
    return userService.getUser();
  }

}
